import { enqueue } from '../react/set_state_queue'

class Component {
    constructor(props = {}) {
        this.props = props;
        this.state = {}
    }
    setState(stateChange) {
        enqueue(stateChange, this);
        /**
         * // 对象Copy，修改对象
         * Object.assign(this.state, state);
         * // 重新渲染组件
         * renderComponent(this);
         */
    }
}

export default Component;